package org.example.controller;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.example.entity.Student;


/**
 * @author Cheng-02
 * @version V1.0
 * @Package org.example.controller
 * @date 2024/4/2 10:20
 */
@Configuration
public class MyTest {
    @Bean
    public Student ConfStudent() {
        Student student = new Student();
student.setId("123");
student.setName("张三");
student.setPasswd("123");;
return student;
    }
    @Bean
    public Student AStudent() {
        Student student = new Student();
        student.setId("321");
        student.setName("李四");
        student.setPasswd("456");;
        return student;
    }

}
